﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dashboard.aspx.cs" Inherits="PMP.Goals.Dashboard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Goal Management Dashboard</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DropDownList ID="ddlSprints" runat="server" AutoPostBack="True" 
            DataSourceID="SqlDataSourceSprints" DataTextField="sprint" DataValueField="id" 
            Height="25px" onselectedindexchanged="ddlSprints_SelectedIndexChanged" 
            Width="250px">
        </asp:DropDownList>
        <asp:Button ID="btnAddGoal" runat="server" Text="Add Goal" 
            onclick="btnAddGoal_Click" /> 
        <asp:Button ID="btnRefresh" runat="server" Text="Refresh" 
            onclick="btnRefresh_Click" />
        <asp:Button ID="btnSync" runat="server" Text="Sync" 
            onclick="btnSync_Click" />
        <asp:Button ID="btnReport" runat="server" onclick="btnReport_Click" 
            Text="Reports" />
        <asp:Button ID="btnManagement" runat="server" onclick="btnManagement_Click" 
            Text="Management" />
        <asp:Button ID="btnKnowledgeBase" runat="server" 
            onclick="btnKnowledgeBase_Click" Text="Knowledge Base" />
        <asp:Button ID="btnMaintenance" runat="server" onclick="btnMaintenance_Click" 
            Text="Maintenance" />
        <asp:Button ID="btnCulture" runat="server" 
            onclick="btnCulture_Click" Text="Process" />
        <asp:Label ID="lblLoginStatus" runat="server"></asp:Label>
        <asp:Button ID="btnLogout" runat="server" onclick="btnLogout_Click" 
            Text="Logout" Visible="False" />
    </div>
    <asp:SqlDataSource ID="SqlDataSourceSprints" runat="server" 
        ConnectionString="<%$ ConnectionStrings:LocalConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:LocalConnectionString.ProviderName %>" 
        SelectCommand="select id, sprint from sprint order by iscompleted, sprint">
    </asp:SqlDataSource>
    <br />
    <asp:GridView ID="grvGoals" runat="server" CellPadding="4" ForeColor="#333333" OnRowCommand="grvGoals_RowCommand"
        GridLines="Both" AutoGenerateColumns="False" DataKeyNames="status,id"  OnRowDataBound="grvGoals_RowDataBound"
        >
        <RowStyle BackColor="#EFF3FB" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    </form>
</body>
</html>
